package com.tac.se2_project2;

import java.sql.Date;

public class Contact {
	 
    //private variables
    int id;
    int cat;
    String name;
    String phone_number;
    String alt_number;
    String email;
    String comment;
    String address;
    int userId;
    Date modifyDate;
 
    public String get_alt_number() {
		return alt_number;
	}
	public void set_alt_number(String _alt_number) {
		this.alt_number = _alt_number;
	}
	public String get_email() {
		return email;
	}
	public void set_email(String _email) {
		this.email = _email;
	}
	public String get_comment() {
		return comment;
	}
	public void set_comment(String _comment) {
		this.comment = _comment;
	}
	public String get_address() {
		return address;
	}
	public void set_address(String _address) {
		this.address = _address;
	}
	public int get_cat(){
		return cat;
	}
	public void set_cat(int _cat){
		this.cat = _cat;
	}
	public void set_userId(int _id){
		this.userId = _id;
	}
	public int get_userId(){
		return userId;
	}
	// Empty constructor
    public Contact(){
 
    }
    // constructor
    public Contact(int id, String name, String _phone_number){
        this.id = id;
        this.name = name;
        this.phone_number = _phone_number;
    }
 
    // constructor
    public Contact(String name, String _phone_number){
        this.name = name;
        this.phone_number = _phone_number;
    }
    // getting ID
    public int getID(){
        return this.id;
    }
 
    // setting id
    public void setID(int id){
        this.id = id;
    }
 
    // getting name
    public String getName(){
        return this.name;
    }
 
    // setting name
    public void setName(String name){
        this.name = name;
    }
 
    // getting phone number
    public String getPhoneNumber(){
        return this.phone_number;
    }
 
    // setting phone number
    public void setPhoneNumber(String phone_number){
        this.phone_number = phone_number;
    }
    
    public String getDisplayName() {
		return name;
    }
    
    public void setModifyDate(Date date){
    	this.modifyDate = date;
    }
    
    public Date getModifyDate(){
    	return this.modifyDate;
    }
}